package com.sn.author.service.dao;

import com.sn.author.monitor.msg.entity.TaskPushMessage;

/**
 * @Author xiaom
 * @Date 2020/9/22 19:24
 * @Version 1.0.0
 * @Description <>
 **/
public interface PushMessageService {

    /**
     * Push message
     * @param taskPushMessage message model
     */
    void pushMessage(TaskPushMessage taskPushMessage);

    static TaskPushMessage buildTaskPushMessage(String message,String taskId,Integer taskType){
        TaskPushMessage taskPushMessage = new TaskPushMessage();
        taskPushMessage.setMessage(message);
        taskPushMessage.setTaskId(taskId);
        taskPushMessage.setTaskType(taskType);
        return taskPushMessage;
    }

}
